package schoolWork.Test1;

import java.util.Scanner;

public class cntChar {

    int test1;


//    public void setTest1(int _test1) {
//        test1 = _test1;
//    }
//    可以不用this 但是必须保证数据域的变量名和方法形参列表的变量名不同

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        int captain = 0;
        int lower = 0;
        int digit = 0;
        int other = 0;

        for(int i = 0; i < s.length(); i++)
        {
            Character e = s.charAt(i);
            if(Character.isUpperCase(e))
                captain++;
            else if(Character.isLowerCase(e))
                lower++;
            else if(Character.isDigit(e))
                digit++;
            else
                other++;
        }

        System.out.printf("%d %d %d %d",captain, lower, digit,other);
    }
}
